b4c500de8f0f85e3c690ed9a23014ae769693aba,com.reprezen.swagedit/src/com/reprezen/swagedit/model/NodeDeserializer.java,NodeDeserializer,deserializeObjectNode,#JsonParser#DeserializationContext#JsonLocation#,39

Before Change


        final AbstractNode parent = (AbstractNode) context.getAttribute(ATTRIBUTE_PARENT);
        final JsonPointer ptr = (JsonPointer) context.getAttribute(ATTRIBUTE_POINTER);

        final ObjectNode node = new ObjectNode(parent, ptr, p.getCurrentLocation());
        node.setStartLocation(startLocation);
        model.add(node);

        while (p.nextToken() != JsonToken.END_OBJECT) {
            String name = p.getCurrentName();

            JsonPointer pp = JsonPointer.compile(ptr.toString() + "/" + name.replaceAll("/", "~1"));
            context.setAttribute(ATTRIBUTE_PARENT, node);
            context.setAttribute(ATTRIBUTE_POINTER, pp);

            AbstractNode v = deserialize(p, context);
            v.setProperty(name);
            node.put(name, v);
        }

        node.setEndLocation(p.getCurrentLocation());
        return node;
    }

After Change


            node.put(name, v);
        }

        node.setEndLocation(createLocation(p.getCurrentLocation()));
        return node;
    }